import {get, post,dele} from '../utils/request'

//获取收货地址  方便获取默认收货地址
export const reqGetAdderssAPI = (data) => get('/api/v1/addresses',data);

//根据id获取订单详情
export const reqGetOrderDetailAPI = (id) => get('/api/v1/orders/'+id);

//获取所有的订单
export const reqGetAllOrder = (params) => get('/api/v1/orders',params);

//删除单个选中的订单
export const reqDelOrder = (id) => dele('/api/v1/orders/'+id)


//删除选中的订单
export const reqDelCheckedOrder = (ids) => post('/api/v1/orders/delmany',ids)

//修改支付状态
export const reqpayAPI = (ids) => post('/api/v1/orders/pay',ids)
